﻿using System.ComponentModel;
using System.Xml;
using System.Xml.Serialization;

namespace Bpmn.Xml;

/// <remarks/>
[Serializable]
[XmlType(Namespace = "http://www.omg.org/spec/BPMN/20100524/MODEL", TypeName = "tAssociation")]
[XmlRoot("association", Namespace = "http://www.omg.org/spec/BPMN/20100524/MODEL", IsNullable = false)]
public partial class Association : Artifact
{
    /// <remarks/>
    [XmlAttribute("sourceRef")]
    public XmlQualifiedName SourceRef { get; set; } = default!;

    /// <remarks/>
    [XmlAttribute("targetRef")]
    public XmlQualifiedName TargetRef { get; set; } = default!;

    /// <remarks/>
    [XmlAttribute("associationDirection")]
    [DefaultValue(AssociationDirection.None)]
    public AssociationDirection AssociationDirection { get; set; } = AssociationDirection.None;
}
